//Source file: D:\\test\\com\\ce\\pms\\house\\model\\Product.java

package com.ce.pms.house.model;

import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

import com.ce.pms.common.model.SysInfo;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 服务产品　关联表：HM_PRODUCT
 * @author Adama Yue
 */
@Entity
@Table(name = "HM_PRODUCT")
@Inheritance(strategy = InheritanceType.JOINED)
public abstract class Product implements IDomainObject
{

	@Id @GeneratedValue @Column(name="PRODUCT_ID")
	private Long keyword;
	@Embedded
	private SysInfo sysInfo;

	public Product(Long keyword){
		this.keyword = keyword;
	}
	public Product() {}
	/**
	 * mini constructor
	 * @param sysInfo
	 */
	public Product(SysInfo sysInfo) {
		super();
		this.sysInfo = sysInfo;
	}
	   /**************************************************
	    * Accessors and Modifiers
	    **************************************************/

	public SysInfo getSysInfo() {
		return sysInfo;
	}
	public void setSysInfo(SysInfo sysInfo) {
		this.sysInfo = sysInfo;
	}
	public Long getKeyword() {
		return keyword;
	}
	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}

}
